package com.ruoyi.web.course.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频对象 train_video
 *
 * @author 范书铭
 * @date 2024-10-09
 */
@ApiModel(value =  "视频",description = "")
@TableName(resultMap = "com.ruoyi.web.course.mapper.TrainVideoMapper.TrainVideoResult")
@Data
@EqualsAndHashCode(callSuper = true)
public class TrainVideo extends BaseEntity{
private static final long serialVersionUID = 1L;

        /** ID */
            @TableId(value = "id",type = IdType.AUTO)
        private Long id;

        /** 标题 */
                @ApiModelProperty(name = "标题",notes = "")
                @Excel(name = "标题")
        private String title;

        /** 描述 */
                @ApiModelProperty(name = "描述",notes = "")
                @Excel(name = "描述")
        private String description;

        /** 讲师 */
                @ApiModelProperty(name = "讲师",notes = "")
                @Excel(name = "讲师")
        private String lecturer;

        /** 时长 */
                @ApiModelProperty(name = "时长",notes = "")
                @Excel(name = "时长")
        private Long duration;

        /** 封面图 */
                @ApiModelProperty(name = "封面图",notes = "")
                @Excel(name = "封面图")
        private String coverImageUrl;

        /** URL */
                @ApiModelProperty(name = "URL",notes = "")
                @Excel(name = "URL")
        private String videoUrl;

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("id", getId())
        .append("title", getTitle())
        .append("description", getDescription())
        .append("lecturer", getLecturer())
        .append("duration", getDuration())
        .append("coverImageUrl", getCoverImageUrl())
        .append("videoUrl", getVideoUrl())
        .append("createBy", getCreateBy())
        .append("createTime", getCreateTime())
        .append("updateBy", getUpdateBy())
        .append("updateTime", getUpdateTime())
        .append("remark", getRemark())
            .toString();
}
        }